﻿<%@ Page Title="" Language="C#" MasterPageFile="~/GUI/Admin/QuanLy.master" AutoEventWireup="true" CodeBehind="QL-NguoiDung.aspx.cs" Inherits="ProjectWebNhac.GUI.Admin.QL_NguoiDung" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">



<script src="js/jquery.min.js" type="text/javascript"></script>
<div class="page-header">
            <div class="pull-left">
              <h2>Quản Lý Người Dùng</h2>
            </div>
            <div class="pull-right">
              <ul class="stats">
                <li class="color-second">
                  <span class="fs1" aria-hidden="true" data-icon=""></span>
                  <div class="details" id="date-time"><span class="big">June 20th 2013</span><span>Thu 09:11:00 am</span></div>
                </li>
              </ul>
            </div>
            <div class="clearfix"></div>
          </div>

          <div class="row-fluid">
                <asp:Panel ID="pnDetail" runat="server">
            <div class="span6">
              <div class="widget no-margin">
                <div class="widget-header">
                  <div class="title">
                    <span class="fs1" aria-hidden="true" data-icon=""></span> Thông Tin Người Dùng
                  </div>
                </div>
                <div class="widget-body">
                  <div class="row-fluid">
                    <div class="span4">
                      <div class="thumbnail">
                          <asp:Image ID="imgHinhAnh" runat="server" Width="180"
                              ImageUrl="images/male-avatar-icon-614x460.png" />
                      </div>
                    </div>
 
                    <div class="span6">
                      <form class="form-horizontal no-margin">
                         <div style="width: 348px;" class="row-fluid">
                          <label class="span4">
                            Tên Người Dùng
                          </label>
                          <div class="span8">
                          <asp:TextBox ID="txtTenNguoiDung" Enabled="false" runat="server"></asp:TextBox>
                          </div>
                        </div>

                        <div style="width: 348px;" class="row-fluid">
                          <label class="span4">
                            Tài Khoản
                          </label>
                          <div class="span8">
                          <asp:TextBox ID="txtTaiKhoan" Enabled="false" runat="server"></asp:TextBox>
                          </div>
                        </div>
                         <div style="width: 348px;" class="row-fluid">
                          <label class="span4">
                             Ngày Sinh
                          </label>
                          <div class="span8">
                           <asp:TextBox ID="txtNgaySinh"  Enabled="false" runat="server"></asp:TextBox>
                          </div>
                        </div>

                        
                         <div style="width: 348px;" class="row-fluid">
                          <label class="span4">
                            Giới Tính
                          </label>
                          <div class="span8">
                           <asp:TextBox ID="txtGioiTinh"  Enabled="false" runat="server"></asp:TextBox>
                          </div>
                        </div>

                        <div style="width: 348px;" class="row-fluid">
                          <label class="span4">
                            Email
                          </label>
                          <div class="span8">
                           <asp:TextBox ID="txtEmail"  Enabled="false" runat="server"></asp:TextBox>
                          </div>
                        </div>

                        <div style="width: 348px;" class="row-fluid">
                          <label class="span4">
                            Ngày  Đăng Ký
                          </label>
                          <div class="span8">
                           <asp:TextBox ID="txtNgayDangKy"  Enabled="false" runat="server"></asp:TextBox>
                          </div>
                        </div>

                        <div>
                    </div>

                      <div class="form-actions " style="float: left; margin-left: -178px; width: 476px;">
                        
                       
                         <div class="span2">
                         <asp:LinkButton ID="lnkXoa" CssClass="btn btn-danger input-top-margin" 
                                    runat="server" onclick="lnkXoa_Click" >Khóa</asp:LinkButton>
                         </div>
                        
                        </div>  

                      </form>
                    </div>
                   
                    

                  </div>
                </div>
              </div>
            </div>
                
                
            <div class="span6">
              <div class="widget no-margin">
                <div class="widget-header">
                  <div class="title">
                    <span class="fs1" aria-hidden="true" data-icon=""></span> Danh Sách Bài Hát
                  </div>
                </div>
                <div class="widget-body">
                  <div id="Div1" class="example_alt_pagination">

                    <div id="Div2" class="dataTables_wrapper" role="grid">
                    
                        <asp:GridView ID="gvDSBaiHatNguoiDung" runat="server" 
                            CssClass="table table-condensed table-striped table-hover table-bordered pull-left dataTable" 
                            AutoGenerateColumns="False" onrowcommand="gvDSBaiHatNguoiDung_RowCommand">
                            <Columns>
                              
                                <asp:BoundField DataField="TenBaiHat" HeaderText="Tên Bài Hát" />
                                
                                <asp:BoundField DataField="LuotNghe" HeaderText="Lượt Nghe">
                                <ItemStyle Width="0px" />
                                </asp:BoundField>
                                
                                <asp:BoundField DataField="TrangThai" HeaderText="Trạng Thái" >
                                <HeaderStyle CssClass="hidden-phone" HorizontalAlign="Center" />
                                <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                               <asp:TemplateField HeaderText="Xử Lý">
                                <ItemTemplate>
                                <asp:LinkButton ID="lnkXoa" CommandArgument='<%#Eval("MaBaiHat")%>' CommandName="Xóa" CssClass="btn btn-inverse" runat="server" Text="Xóa"></asp:LinkButton>
                                </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                        </div>
                    <div class="clearfix"></div>
                  </div>
                </div>
              </div>
            </div>
                </asp:Panel>


            </div>

            <div class="row-fluid">
            <div class="span12">
              <div class="widget no-margin">
                <div class="widget-header">
                  <div class="title">
                    <span class="fs1" aria-hidden="true" data-icon=""></span> Danh Sách Ca Sĩ
                  </div>
                </div>
                <div class="widget-body">
                  <div id="dt_example" class="example_alt_pagination">

                    <div id="data-table_wrapper" class="dataTables_wrapper" role="grid">
                    
                        <asp:GridView ID="gvDSNguoiDung" runat="server" 
                            CssClass="table table-condensed table-striped table-hover table-bordered pull-left dataTable" 
                            AutoGenerateColumns="False" onrowcommand="gvDSNguoiDung_RowCommand" 
                           >
                            <Columns>
                                <asp:TemplateField HeaderText="Tài Khoản">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lnkTaiKhoan"  CommandArgument='<%#Eval("TaiKhoan")%>' CommandName="ChiTiet"  runat="server"><%#Eval("TaiKhoan")%></asp:LinkButton>
                                </ItemTemplate>
                                </asp:TemplateField>
                              
                                <asp:TemplateField HeaderText="Avatar">
                                <ItemTemplate>
                                 <img style="max-height:85px;max-width:85px" src="../../HinhAnh/ThanhVien/<%#Eval("Avatar")%>">
                                </ItemTemplate>
                                    <HeaderStyle CssClass="hidden-phone" HorizontalAlign="Center" />
                                    <ItemStyle Width="10%" HorizontalAlign="Center" />
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Họ Tên">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lnkHoTen" CommandArgument='<%#Eval("TaiKhoan")%>' CommandName="ChiTiet" runat="server"> <%#Eval("HoTen") %></asp:LinkButton>
                               
                                </ItemTemplate>
                                    <HeaderStyle CssClass="hidden-phone" HorizontalAlign="Center" />
                                    <ItemStyle CssClass="gradeX" HorizontalAlign="Center" />
                                </asp:TemplateField>
                                
                                
                                <asp:TemplateField HeaderText="Ngày Đăng Ký">
                                <ItemTemplate>
                                    <asp:Label ID="lbNgayDangKys" runat="server" Text='<%#Eval("NgayDangKy")%>'></asp:Label>
                                </ItemTemplate>
                                </asp:TemplateField>
                                
                                
                                
                                <asp:TemplateField HeaderText="Trạng Thái">
                                <ItemTemplate>
                                    <asp:Label ID="lbTrangThai" runat="server" Text='<%#Eval("TrangThai")%>'></asp:Label>
                                </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Xử Lý">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lnkKhoa" CommandArgument='<%#Eval("TaiKhoan")%>' CssClass="btn btn-inverse"  CommandName="Khoa" runat="server">Khóa</asp:LinkButton>
                                    <asp:LinkButton ID="lnkMo" CommandArgument='<%#Eval("TaiKhoan")%>' CssClass="btn btn-inverse"  CommandName="Mo" runat="server">Mở</asp:LinkButton>
                                </ItemTemplate>
                                </asp:TemplateField>


                            </Columns>
                        </asp:GridView>
                        </div>
                    <div class="clearfix"></div>
                  </div>
                </div>
              </div>
            </div>
          </div>
</asp:Content>
